package com.yztc.demo.service;

/**
 * Created by Administrator on 2017/7/21.
 */
public class AddressProxy implements IAddress{
    AddressImpl address;
    public AddressProxy(AddressImpl address){
        this.address=address;
    }

    public void get(String name) {
     fir();
     this.address.get(name);
     this.afe();
    }
    public void fir(){
        System.out.println("前置");
    }
    public void afe(){
        System.out.println("后置");
    }
}
